package com.ruoyi.web.a2.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 测试管理.
 *
 * @author :yanlixiong
 * @date :2021-06-29 11:36:38
 */
@Slf4j
@Api(tags = "测试管理")
@RestController
@RequestMapping("/webs/test")
public class TestController {

    @Value("${server.port}")
    private String serverPort;

    @ApiOperation(value = "读取配置文件-获取server.port")
    @GetMapping(path = "/getServerPort")
    public AjaxResult getServerPort() {
        return AjaxResult.success(serverPort);
    }

}
